﻿package Message.Public
{
    import Framework.Serialize.*;

    public class SAutoArenaRecord extends Object
    {
        public var isFail:Boolean;
        public var rankChange:int;
        public var cDt:Date;
        public var fromPlayer:SArenaBasePlayer;
        public var toPlayer:SArenaBasePlayer;

        public function SAutoArenaRecord()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeBool(this.isFail);
            param1.writeInt(this.rankChange);
            param1.writeDate(this.cDt);
            this.fromPlayer.__write(param1);
            this.toPlayer.__write(param1);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.isFail = param1.readBool();
            this.rankChange = param1.readInt();
            this.cDt = param1.readDate();
            this.fromPlayer = new SArenaBasePlayer();
            this.fromPlayer.__read(param1);
            this.toPlayer = new SArenaBasePlayer();
            this.toPlayer.__read(param1);
            return;
        }// end function

    }
}
